<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const arr = [];
      for (let i = 2; i <= 100; i++) {
        let isPrime = true;
        for (let j = 2; j < i - 1; j++) {
          if (i % j === 0) {
            isPrime = false;
          }
        }
        if (isPrime) arr.push(i);
      }
      console.log(arr);
    </script>
  </body>
</html>
